public class Mouse extends Cat {
    private String name;
    private int weight;
    private int physical;
    public Mouse(String name,int weight,int physical){
        super(name,weight,physical);
        this.name=name;
        this.weight=weight;
        this.physical=physical;
    }
    public void bite(){
        physical=0;
        weight=0;
        System.out.println(super.getName()+"的体力是："+getPhysical()+";\n重量是："+getWeight()+"kg。");
    }
    public void defeat(){
        physical-=10;
        System.out.println(super.getName()+"的体力是："+getPhysical()+";\n重量是："+getWeight()+"kg。");
    }
    public void sEt(String name,int weight,int physical){
        this.name=name;
        this.weight=weight;
        this.physical=physical;
    }
    public String getName(){
        return name;
    }

    public int getWeight() {
        return weight;
    }

    public int getPhysical() {
        return physical;
    }
}
